<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" href="css/front.css" rel="stylesheet" />
<link type="text/css" href="css/main.css" rel="stylesheet" />
<link type="text/css" href="css/home.css" rel="stylesheet" />
<link type="text/css" href="css/alert.css" rel="stylesheet" />
<link type="text/css" href="css/jquery-ui-1.8.16.custom.css" rel="stylesheet" />
<script type="text/javascript" src="common/JsSupport.js"></script>
<script type="text/javascript" src="page/keepAccounts/debtAndCredit/js/debtAndCredi"></script>
<title>记账本</title>
</head>
<body style="overflow: auto">
	记一笔收入
	<div>
	<div>
		<form id="keepAccountForm">
			<table>
				<tr style="display:none;">
					<td>明细id</td><td><input id="detailId" type="text" name="detail.id"/></td>
				</tr>
				<tr>
					<td>转出账户：</td>
					<td>
						<select id="editFromAccount" name="detail.fromAccount.id">
							<s:iterator value="accountList" >
								<option value='<s:property value="id"/>'><s:property value="accountName"/></option>
							</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td><span style="color:red">*</span>转出金额：</td>
					<td>
						<input id="editOutAmount" name="detail.outAmount" type="text" class="txt_input"/>
					</td>
				</tr>
				<tr>
					<td>转入账户：</td>
					<td>
						<select id="editToAccount" name="detail.toAccount.id">
							<s:iterator value="accountList">
								<option value='<s:property value="id"/>'><s:property value="accountName"/></option>
							</s:iterator>
						</select>
					</td>
				</tr>
				<tr>
					<td><span style="color:red">*</span>转入金额：</td>
					<td>
						<input id="editInAmount" name="detail.inAmount" type="text" class="txt_input"/>
					</td>
				</tr>
				<tr>
					<td><span style="color:red">*</span>转账日期：</td>
					<td>
						<input type="text" id="happenedDate" name="detail.happenedDate" readonly="readonly" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})">
					</td>
				</tr>
				<tr>
					<td>备注：</td>
					<td><textarea id="remark" name="detail.remark" rows="4" cols="20"></textarea></td>
				</tr>
				<tr>
					<td></td>
					<td>
					<input type="button" id="submit" value="保存"/>
					<input type="reset" id="reset" value="重置" style="display:none;"/>
					<input type="button" id="clear" value="清空"/>
					</td>
				</tr>
			</table>
		</form>
	</div>
	<div id="tableDiv">
	</div>
	</div>
</body>

</html>